#define _CRT_SECURE_NO_WARNINGS
#include "queue.h"
Queue::Queue()
{
	_front =_rear = NULL;
}
Queue::~Queue()
{
	QNode* cur =_front;
	while (cur)
	{
		QNode* del = cur;
		cur = cur->_next;
		free(del);
	}
	_front =_rear = NULL;
}